-- mark_receive_damage_add(血狼标记专用)
-- create by cheny3
-- 受到的伤害百分比增加

return {
    apply = function(prop, baseValue)
        return prop[3];
    end,

    -- 每回合触发
    trigger = function(who, prop, base)
        local force = prop[3];

        -- 不能为负
        force = math.max(0, force);

        -- 玩家降低杀手标记效果
        local co = 1000;
        local prop2 = PropM.combine(who, "weak_kill_mark", 1);
        if prop2[3] > 0 then
            co = 1000 - prop2[3];
        end

        -- 降低后的效果
        force = FormulaM.invoke("CALC_BIG_DIVISION", force, co, 1000);

        -- 至少留1%
        if force > 0 then
            force = math.max(10, force);
        end

        return math.modf(base * force / 1000);
    end,

    record = function(target, prop, path)
        return false;
    end
};
